<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="body">
            <p:panel header="#{bundle.ListTipoTramiteTitle}" />
            <h:form styleClass="jsfcrud_list_form">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListTipoTramiteEmpty}" rendered="#{tipoTramiteController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{tipoTramiteController.items.rowCount > 0}">
                    <h:outputText value="#{tipoTramiteController.pagination.pageFirstItem + 1}..#{tipoTramiteController.pagination.pageLastItem + 1}/#{tipoTramiteController.pagination.itemsCount}"/>&nbsp;
                    <h:commandLink action="#{tipoTramiteController.previous}" value="#{bundle.Previous} #{tipoTramiteController.pagination.pageSize}" rendered="#{tipoTramiteController.pagination.hasPreviousPage}"/>&nbsp;
                    <h:commandLink action="#{tipoTramiteController.next}" value="#{bundle.Next} #{tipoTramiteController.pagination.pageSize}" rendered="#{tipoTramiteController.pagination.hasNextPage}"/>&nbsp;
                    <p:dataTable value="#{tipoTramiteController.items}" var="item" cellSeparator="1" >
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTipoTramiteTitle_idTipoTramite}"/>
                            </f:facet>
                            <h:outputText value="#{item.idTipoTramite}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTipoTramiteTitle_nombre}"/>
                            </f:facet>
                            <h:outputText value="#{item.nombre}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTipoTramiteTitle_fkPadTipTra}"/>
                            </f:facet>
                            <h:outputText value="#{item.fkPadTipTra}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTipoTramiteTitle_sigla}"/>
                            </f:facet>
                            <h:outputText value="#{item.sigla}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTipoTramiteTitle_estado}"/>
                            </f:facet>
                            <h:outputText value="#{item.estado}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <h:commandLink action="#{tipoTramiteController.prepareView}" value="#{bundle.ListTipoTramiteViewLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{tipoTramiteController.prepareEdit}" value="#{bundle.ListTipoTramiteEditLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{tipoTramiteController.destroy}" value="#{bundle.ListTipoTramiteDestroyLink}"/>
                        </p:column>
                    </p:dataTable>
                </h:panelGroup>
                <br />
                <h:commandLink action="#{tipoTramiteController.prepareCreate}" value="#{bundle.ListTipoTramiteCreateLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ListTipoTramiteIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
